refactor: Don't modify ContainerBuilder after it has been build#838
refactor: Don't modify ContainerBuilder after it has been build#838
Conversation
|
Do we know why the |
|
After talking with @sbernauer: The But hence the volumeMounts are not needed on the Adjusted the code to reflect that, also renamed and dropped the ContainerBuilder for code clarity. Will run integrationtests to make sure everything works and add them into the description. |
sbernauer
left a comment
There was a problem hiding this comment.
Change itself LGTM, thanks!
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Description
During reconciliation the moved code from the PR was called afterpod_builder.add_container(container_nifi.build()), therefore not updating the volumeMounts of thenificontainer with the volumeMounts related to the authentication config and they were missing. This PR adds them in.After talking with @sbernauer: The prepare container was configuring things with the auth configs being mounted, so the code/tests still worked as expected.
But hence the volumeMounts are not needed on the nifi container (which weren't applied anyway due to the crossed out explanation above). The correct way would be to remove the ContainerBuilder from the mounting step.
Adjusted the code to reflect that, also renamed and dropped the ContainerBuilder for code clarity. Will run integrationtests to make sure everything works and add them into the description.
Integrationtests
Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker